import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int a = 5;
        int b = 9;
        int c = 6;
        System.out.println(max2(a,b));
        System.out.println(max3(a,b,c));
    }

    public static int max2(int a,int b){
        if (a > b){
            return a;
        }else {
            return b;
        }
    }

    public static int max3(int a,int b,int c){
        int n = max2(a,b);
        int m = max2(n,c);
        return m;
    }
}



